package com.yjy.mapper;

import com.yjy.entity.Introduction;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IntroductionMapper {
    List<Introduction> selectAll(Introduction introduction);

    void insert(Introduction introduction);


    void updateById(Introduction introduction);

    @Delete("delete from introduction where id = #{id}")
    void deleteById(Integer id);


    @Select("SELECT * from `introduction` where id = #{id}")
    Introduction selectById(String id);
}
